using System;
using System.Web;
using System.Collections;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Collections.Generic;

using Com.Grubbland.Data.Objects;
using Com.Grubbland.Data.Access;


/// <summary>
/// Summary description for NewsService
/// </summary>
[WebService(Namespace = "http://eelms.grubbland.com/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class NewsService : System.Web.Services.WebService
{

    NewsServiceImpl _svc = new NewsServiceImpl();

    public NewsService()
    {

        //Uncomment the following line if using designed components 
        //InitializeComponent(); 
    }

    [WebMethod]
    public string HelloWorld()
    {
        return "Hello World";
    }

    [WebMethod]
    public List<NewsItem> GetNews( int productId )
    {
        return _svc.GetNews(productId);
    }

    [WebMethod]
    public bool AddNewsItem( NewsItem n, String userId )
    {
        return _svc.AddNewsItem(n,userId);
    }

}

